/*

    2A03

         ___  ___
        |*  \/   |
ROUT <01]        [40<  VCC
COUT <02]        [39>  $4016W.0
/RES >03]        [38>  $4016W.1
A0   <04]        [37>  $4016W.2
A1   <05]        [36>  /$4016R
A2   <06]        [35>  /$4017R
A3   <07]        [34>  R/W
A4   <08]        [33<  /NMI
A5   <09]        [32<  /IRQ
A6   <10]  2A03  [31>  PHI2
A7   <11]        [30<  ---
A8   <12]        [29<  CLK
A9   <13]        [28]  D0
A10  <14]        [27]  D1
A11  <15]        [26]  D2
A12  <16]        [25]  D3
A13  <17]        [24]  D4
A14  <18]        [23]  D5
A15  <19]        [22]  D6
VEE  >20]        [21]  D7
        |________|

*/


var module = {
    
name: "2A03",
    
description: "NES custom CPU",
    
pins : [
    [ 1, 'snd1'	],
    [ 2, 'snd2'	],
    [ 3, 'res'	],
    [ 4, 'ab0'		],
    [ 5, 'ab1'		],
    [ 6, 'ab2'		],
    [ 7, 'ab3'		],
    [ 8, 'ab4'		],
    [ 9, 'ab5'      ],
    [10, 'ab6'      ],
    [11, 'ab7'      ],            
    [12, 'ab8'      ],            
    [13, 'ab9'      ],            
    [14, 'ab10'      ],            
    [15, 'ab11'      ],                
    [16, 'ab12'      ],            
    [17, 'ab13'      ],                
    [18, 'ab14'      ],            
    [19, 'ab15'      ],                
    [20, 'vss'      ],


    [40, 'vcc'  ],
    [39, 'out0'  ],
    [38, 'out1'  ],
    [37, 'out2'  ],
    [36, 'joy1'  ],
    [35, 'joy2'  ],    
    [34, 'rw'  ],
    [33, 'nmi'  ],    
    [32, 'irq'  ],    
    [31, 'phi2'  ],        
    [30, 'dbg'  ],            
    [29, 'clk_in'  ],                
    [28, 'db0'  ],
    [27, 'db1'  ],
    [26, 'db2'  ],
    [25, 'db3'  ],
    [24, 'db4'  ],
    [23, 'db5'  ],
    [22, 'db6'  ],
    [21, 'db7'  ],                    
],

nodenames_files:   ["2a03/nodenames.js"],
transdefs_files:  ["2a03/transdefs_named.js"],
segdefs_files:    ["2a03/segdefs.js"],
    
};
